package com.ss.test12;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/20 - 03 - 20 - 15:20
 */
public class Test {
    //这是一个main方法，是程序的入口
    public static void main(String[] args) {
        //共享的商品：
        Product p = new Product();
        ProducerThread pt = new ProducerThread(p);
        CustomerThread ct = new CustomerThread(p);

        pt.start();
        ct.start();
    }
}
